﻿using System;
namespace Tool.Model
{
    /// <summary>
    /// 后台管理系统，当前登录用户
    /// </summary>
    [Serializable]
    public class SysUserInfo
    {
        /// <summary>
        /// 账号Code
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 登录名称
        /// </summary>
        public string LoginName { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 状态  0：正常1：冻结
        /// </summary>
        public int? State { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 性别 1男 2女 0未知
        /// </summary>
        public int? Sex { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 所属角色Codes用,分隔开
        /// </summary>
        public string RoleCodes { get; set; }

        /// <summary>
        /// 所属角色
        /// </summary>
        public string RoleNames { get; set; }

        /// <summary>
        /// 所属职位编码
        /// </summary>
        public string PostCodes { get; set; }

        /// <summary>
        /// 所属职位
        /// </summary>
        public string PostNames { get; set; }

        /// <summary>
        /// 所属部门编码
        /// </summary>
        public string DepartmentCodes { get; set; }
        /// <summary>
        /// 所属部门
        /// </summary>
        public string DepartmentNames { get; set; }
        
        /// <summary>
        /// 是否是超级管理员
        /// </summary>
        public bool IsSuperAdmin { get; set; }

        /// <summary>
        /// 头像地址
        /// </summary>
        public string PicUrl { get; set; }

        /// <summary>
        /// 锁屏密码
        /// </summary>
        public string LockScreenPsw { get; set; }
    }
}
